package com.wang.jmonkey.modules.system.model.enums;

import com.wang.jmonkey.common.model.enums.BaseEnum;

/**
 * @Description 资源权限信息权限主体类型
 * @Author HeJiawang
 * @Date 2021/5/22 9:31
 */
public enum SystemAclPrincipalTypeEnum implements BaseEnum<String> {

    USER("user", "用户"),
    ROLE("role", "角色"),
    DEPT("dept", "机构"),
    DUTY("duty", "职务"),
    JOB("job", "岗位"),
    ;

    private String value;
    private String desc;

    SystemAclPrincipalTypeEnum(String value, String desc) {
        this.value = value;
        this.desc = desc;
    }

    @Override
    public String getDesc() {
        return this.desc;
    }

    @Override
    public String getValue() {
        return this.value;
    }
}
